/*
 * PacketParams.h
 *
 *  Created on: Apr 18, 2017
 *      Author: zhangjf
 */

#ifndef INCLUDE_PACKETPARAMS_H_
#define INCLUDE_PACKETPARAMS_H_

#include <Poco/Net/StreamSocket.h>

using namespace Poco::Net;

#include "Packet.h"

using namespace util;

namespace network
{

class PacketParams
{
public:
	PacketParams(Packet::Ptr& packet, StreamSocket& ss)
	: _packet(packet)
	, _ss(ss) { }
	virtual ~PacketParams() {}

	const Packet::Ptr& getPacket() const { return _packet; }
	StreamSocket& getSocket() const { return _ss; }

private:
	Packet::Ptr _packet;
	StreamSocket& _ss;
};

}

#endif /* INCLUDE_PACKETPARAMS_H_ */
